@import '../../style/themes';
@import '../../style/mixins';

@mixin effect() {
  animation-duration: 0.3s;
  animation-fill-mode: both;
}

.x-tooltip {
  @include reset-component();

  position: absolute;
  min-width: 30px;
  padding: 6px 8px;
  box-sizing: border-box;
  color: $tooltip-color;
  background: $tooltip-bg;
  box-shadow: $box-shadow-base;

  &-enter-from,
  &-leave-to {
    opacity: 0;
    transform: scale(0.8);
  }

  &-enter-active,
  &-leave-active {
    transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  }
}
